package com.yq.day18._06string;

import java.util.Arrays;

/**
 * @author 3307235355@qq.com
 * @since 2022/06/19 15:23
 */
public class DEmo04 implements Comparable{
    public static void main(String[] args) {
        String[] s ={"9","1","2","3"};
        // for (int i = 0; i < s.length; i++) {
        //     if ((i+1)<s.length){
        //         System.out.println(s[i].compareTo(s[i + 1]));
        //     }
        //
        // }
        Arrays.sort(s);
        for (String s1 : s) {
            System.out.println(s1);
        }

    }

    @Override
    public int compareTo(Object o) {
        // return Double.compare();
        return 0;
    }
}
